package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.TBoutiqueCallCheckModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by wzy on 2017/11/7.
 */
public interface TBoutiqueCallCheckRepository extends JpaRepository<TBoutiqueCallCheckModel,Integer>,JpaSpecificationExecutor<TBoutiqueCallCheckModel>{

    @Query("select a from TBoutiqueCallCheckModel a where a.contractNum = ?1")
    TBoutiqueCallCheckModel findBycontroactNUm(String contractNum);
}
